package com.zhiyou.monitoring.service.impl;

import com.zhiyou.monitoring.dao.VideoMonitoringDao;
import com.zhiyou.monitoring.pojo.VideoMonitoring;
import com.zhiyou.monitoring.service.VideoMonitoringService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class VideoMonitoringServiceImpl implements VideoMonitoringService {
    @Autowired
    VideoMonitoringDao videoMonitoringDao;

    @Override
    public List<VideoMonitoring> getMonitoringList() {
        return videoMonitoringDao.selectAll();
    }

    @Override
    public VideoMonitoring getAllMonitoringdetails(String id) {
        return videoMonitoringDao.selectByPrimaryKey(id);
    }
}
